package com.funmi.lizip.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author itheima
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Resources implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "专题层对应图层id")
    @TableField("layer_id")
    private Integer layerId;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;



    @ApiModelProperty(value = "专题图类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "专题图图片地址")
    @TableField("image_url")
    private String imageUrl;

    @ApiModelProperty(value = "专题图缩略图地址")
    @TableField("thumbnail_url")
    private String thumbnailUrl;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at",select = false)
    private LocalDateTime createAt;

    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_delete",select = false)
    @TableLogic
    private Boolean isDelete;


}
